import { z } from "zod";
export const roleCreateSchema = z.object({
  _id: z.string().optional(),
  name: z.string(),
  permissionDic: z
    .object({
      menu: z.array(z.string()),
      handle: z.array(z.string()),
    })
    .optional(),
});
export const roleUpdateSchema = roleCreateSchema.omit({});
export type RoleCreateType = z.infer<typeof roleCreateSchema>;
